	function qtcalc(hr,qt){

// Corrected QT (QTc) = Bazett's Formula = QT Interval / √ (RR interval)
// RR Interval = 60/HR 

rrint=60/hr;
rrsqrt=Math.sqrt(rrint);
qtc=qt/rrsqrt;

//rounding
qtc=Math.round(qtc);


return {
			 qtc:qtc
	};		 
}




function ref(){
// display reference
 return "Formula is: <br /> RR Interval = 60 / HR" + "<br /> QTc = QT / √ RR" + "<br />Normal QTc ≤ 440 msec. A longer QTc puts the patient at increased risk for torsade de pointes.";
}
